package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("notice")
public class Notice implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private String content;
    private Integer type;          // 1 新闻 2 降价 3 其它

    @TableLogic(value = "0", delval = "1")   // 逻辑删除
    private Integer isDeleted;               // 0 正常 1 删除

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
